<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Tcl-8.6.10
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;13.&nbsp;Programming
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="swig.html" title="SWIG-4.0.1">Prev</a>
          <p>
            SWIG-4.0.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="tk.html" title="Tk-8.6.10">Next</a>
          <p>
            Tk-8.6.10
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="tcl" name="tcl"></a>Tcl-8.6.10
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Tcl
        </h2>
        <p>
          The <span class="application">Tcl</span> package contains the Tool
          Command Language, a robust general-purpose scripting language.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/tcl/tcl8.6.10-src.tar.gz">https://downloads.sourceforge.net/tcl/tcl8.6.10-src.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 97c55573f8520bcab74e21bfd8d0aadc
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 9.7 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 67 MB (including html
                documentation)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.7 SBU (add 2.7 SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <p class="title">
            <strong>Optional Documentation</strong>
          </p>
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/tcl/tcl8.6.10-html.tar.gz">
                https://downloads.sourceforge.net/tcl/tcl8.6.10-html.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: a012711241ba3a5bd4a04e833001d489
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.2 MB
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/tcl">http://wiki.linuxfromscratch.org/blfs/wiki/tcl</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Tcl
        </h2>
        <p>
          This package is also installed in LFS during the bootstrap phase.
          As it is not installed during Chapter 6 of LFS, installation
          instructions are included here in BLFS.
        </p>
        <p>
          If you downloaded the optional documentation, unpack the tarball by
          issuing the following command:
        </p>
        <pre class="userinput">
<kbd class=
"command">tar -xf ../tcl8.6.10-html.tar.gz --strip-components=1</kbd>
</pre>
        <p>
          Install <span class="application">Tcl</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">export SRCDIR=`pwd` &amp;&amp;

cd unix &amp;&amp;

./configure --prefix=/usr           \
            --mandir=/usr/share/man \
            $([ $(uname -m) = x86_64 ] &amp;&amp; echo --enable-64bit) &amp;&amp;
make &amp;&amp;

sed -e "s#$SRCDIR/unix#/usr/lib#" \
    -e "s#$SRCDIR#/usr/include#"  \
    -i tclConfig.sh               &amp;&amp;

sed -e "s#$SRCDIR/unix/pkgs/tdbc1.1.1#/usr/lib/tdbc1.1.1#" \
    -e "s#$SRCDIR/pkgs/tdbc1.1.1/generic#/usr/include#"    \
    -e "s#$SRCDIR/pkgs/tdbc1.1.1/library#/usr/lib/tcl8.6#" \
    -e "s#$SRCDIR/pkgs/tdbc1.1.1#/usr/include#"            \
    -i pkgs/tdbc1.1.1/tdbcConfig.sh                        &amp;&amp;

sed -e "s#$SRCDIR/unix/pkgs/itcl4.2.0#/usr/lib/itcl4.2.0#" \
    -e "s#$SRCDIR/pkgs/itcl4.2.0/generic#/usr/include#"    \
    -e "s#$SRCDIR/pkgs/itcl4.2.0#/usr/include#"            \
    -i pkgs/itcl4.2.0/itclConfig.sh                        &amp;&amp;

unset SRCDIR</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          test</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
make install-private-headers &amp;&amp;
ln -v -sf tclsh8.6 /usr/bin/tclsh &amp;&amp;
chmod -v 755 /usr/lib/libtcl8.6.so</kbd>
</pre>
        <p>
          If you downloaded the optional documentation, install it by issuing
          the following commands as the <code class="systemitem">root</code>
          user:
        </p>
        <pre class="root">
<kbd class="command">mkdir -v -p /usr/share/doc/tcl-8.6.10 &amp;&amp;
cp -v -r  ../html/* /usr/share/doc/tcl-8.6.10</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>$([ $(uname -m) = x86_64 ] &amp;&amp;
          echo --enable-64bit)</code></em>: This switch is used to enable 64
          bit support in <span class="application">Tcl</span> on 64 bit
          operating systems.
        </p>
        <p>
          <span class="command"><strong>make
          install-private-headers</strong></span>: This command is used to
          install the <span class="application">Tcl</span> library interface
          headers used by other packages if they link to the <span class=
          "application">Tcl</span> library.
        </p>
        <p>
          <span class="command"><strong>ln -v -sf tclsh8.6
          /usr/bin/tclsh</strong></span>: This command is used to create a
          compatibility symbolic link to the <span class=
          "command"><strong>tclsh8.6</strong></span> file as many packages
          expect a file named <span class=
          "command"><strong>tclsh</strong></span>.
        </p>
        <p>
          <span class="command"><strong>sed -e ...</strong></span>: The
          <span class="application">Tcl</span> package expects that its
          source tree is preserved so that packages depending on it for their
          compilation can utilize it. These <span class=
          "command"><strong>sed</strong></span> remove the references to the
          build directory and replace them with saner system-wide locations.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">sqlite3_analyzer, tclsh, and
              tclsh8.6</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libtcl8.6.so and libtclstub8.6.a</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/lib/itcl4.2.0,
              /usr/lib/sqlite3.30.1.2 /usr/lib/tcl8, /usr/lib/tcl8.6,
              /usr/lib/tdbc1.1.1, /usr/lib/tdbcmysql1.1.1,
              /usr/lib/tdbcodbc1.1.1, /usr/lib/tdbcpostgres1.1.1,
              /usr/lib/thread2.8.5, /usr/share/doc/tcl-8.6.10, and
              /usr/share/man/mann</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="sqlite3_analyzer" name=
                    "sqlite3_analyzer"></a><span class="term"><span class=
                    "command"><strong>sqlite3_analyzer</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a program to analyze sqlite3 database files and output
                    a report that gives information on size and storage
                    efficiency for the database and it's tables and indexes.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tclsh" name="tclsh"></a><span class=
                    "term"><span class=
                    "command"><strong>tclsh</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a symlink to the <span class=
                    "command"><strong>tclsh8.6</strong></span> program.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tclsh-eight" name="tclsh-eight"></a><span class=
                    "term"><span class=
                    "command"><strong>tclsh8.6</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a simple shell containing the <span class=
                    "application">Tcl</span> interpreter.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libtcl" name="libtcl"></a><span class=
                    "term"><code class="filename">libtcl8.6.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the API functions required by <span class=
                    "application">Tcl</span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 10:54:30 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="swig.html" title="SWIG-4.0.1">Prev</a>
          <p>
            SWIG-4.0.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="tk.html" title="Tk-8.6.10">Next</a>
          <p>
            Tk-8.6.10
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="prog.html" title=
          "Chapter&nbsp;13.&nbsp;Programming">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
